/**
 * 作者: wgx
 * 日期: 2025-03-03 15:03:34
 * 备注: 子嗣联姻的全服联姻信息，女性
 */
package com.motu.monstercity.server.game.userdata;

import com.motu.monstercity.server.game.base.AllParam;
import com.motu.vertx.module.utility.toolset.TimeUtils;

public class ServerMarryInfo extends ServerMarryInfoModel {
    public ServerMarryInfo() {
        super();
    }

    public ServerMarryInfo(int serverId, long userId, long childId, long minEarnAdd, int sex) {
        putServerId(serverId);
        putUserId(userId);
        putChildId(childId);
        putMinEarnAdd(minEarnAdd);
        putSex(sex);
        putAddTime(TimeUtils.getCurTime());
    }

    // 是否已过期
    public boolean isExpire() {
        if (TimeUtils.getTimeDiff(getAddTime()) > AllParam.CHILD_MARRY_ACTIVE_TIME) {
            return true;
        } else {
            return false;
        }
    }
}
